package designMode.actionMode.command;

/**
 * Created by Administrator on 2018/4/14.
 */
public class CommandTest {

    public static void main(String[] args) {

        Receiver receiver = new Receiver();

        Command cmd = new MyCommand(receiver);

        Invoker invoker = new Invoker(cmd);

        invoker.action();
    }
}
